package cn.jwtool.jwcache.buffer.data;

import cn.jwtool.jwcache.buffer.config.JwcatchConfig;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author : willian fu
 * @version : 1.0
 * 数据存储
 */
public abstract class Catch {
    //初始化容量
    private static final int INITIAL = JwcatchConfig.getInitialCapacity();

    //真实数据存储的map
    protected static final Map<String, Object> data = new ConcurrentHashMap<>(INITIAL);

    //过期时间存储
    protected static final Map<String, Long> expired = new ConcurrentHashMap<>(INITIAL);

}
